package com.jshop.seckill.client;

import com.leyou.item.api.GoodsApi;
import com.leyou.item.pojo.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


@FeignClient(value = "item-service")
public interface SkuFeign extends GoodsApi {

    /**
     * 根据sku_id集合查询sku集合
     * @param skuIds
     * @return
     */
    @PostMapping("skus")
    List<Sku> findBySkuIds(@RequestBody List<Long> skuIds);

}
